package main

import (
	"fmt"
	"strings"
)

func uncommonFromSentences(s1 string, s2 string) []string {
	res := make([]string, 0)
	maps := make(map[string]int32, 0)
	for _, v := range strings.Split(s1, " ") {
		i := maps[v]
		i++
		maps[v] = i
	}

	for _, v := range strings.Split(s2, " ") {
		i := maps[v]
		i++
		maps[v] = i
	}

	for s, i := range maps {
		if i == 1 {
			res = append(res, s)
		}
	}

	return res
}

func main() {
	fmt.Println(uncommonFromSentences("this apple is sweet", "this apple is sour"))
}
